/**
 *  * Bestpay.com.cn Inc.
 *  * Copyright (c) 2011-2017 All Rights Reserved.
 *  
 */
package Test;

import java.util.LinkedHashMap;
import java.util.Map;

/**
  * 
  * @author yedengfeng
  * @version Id: TestMapinit.java, v 0.1 2017/5/2 14:18 yedengfeng Exp $$
  */
public class TestMapinit implements Testcase {
    @Override
    public void runTest() {

        System.out.println(getEnumsMap());
        System.out.println(getEnumsMap());
        System.out.println(getMap());
        System.out.println(getMap());


    }
    public static Map<String, String> getEnumsMap(){

        Map<String,String> map = new LinkedHashMap<String, String>(){
            private static final long serialVersionUID = -1439511311394617843L;
        };

        map.put("1","4");
        map.put("2","5");
        map.put("3","6");

        return map;
    }
    public static Map<String, String> getMap() {

        return  new LinkedHashMap<String, String>(){
            /**  */
            private static final long serialVersionUID = -1439511311394617843L;

            {
                put("1","4");
                put("2","5");
                put("3","6");
            }
        };
    }
}